<template>
    <div class="food-header">
       <div class="nav">
            <div class="logo">
                <img src="@/assets/vue.svg" alt="">
            </div>
            <div class="link">
                <router-link to="/home">首页</router-link>
                <router-link to="/sort" class="active">分类</router-link>
                <router-link to="/picAI">智能识图</router-link>
                <router-link to="/AIchat">AI灵感</router-link>
            </div>
       </div>
       <div class="control">
            <el-input v-model="input" style="width: 240px" :prefix-icon="Search" placeholder="请输入您要查询的美食" />
            <div class="user">
                <router-link class="btn active" to="/login">登录</router-link>
                <router-link class="btn" to="/register">注册</router-link>
            </div>
        </div>
    </div>
</template>

<script setup>
import { Search } from '@element-plus/icons-vue'


</script>

<style lang="less" scoped>
.food-header{
    display: flex;
    height: 80px;
    justify-content: space-between;
    padding: 0 80px;
    box-shadow: 0px 1px 2px 0px rgba(0,0,0,0.09);
    .nav{
        display: flex;
        align-items: center;
        .logo{
            width: 60px;
            img{
                width: 100%;
            }
        }
        .link{
            margin-left: 32px;
            a{
                font-weight: 400;
                font-size: 16px;
                color: #4B5563;
                line-height: 24px;
                text-align: left;
                margin-right: 32px;
                &:active{
                    color: #FF6B6B;
                }
            }
        }
    }
    .control{
        display: flex;
        align-items: center;
        :deep(.el-input__wrapper){
            border-radius: 8px;
            box-shadow: 0 0 0 1px #6b7280;
        }
        .user{
            .btn{
                display: inline-block;
                width: 64px;
                height: 32px;
                background:#f0ecec;
                border-radius: 8px;
                line-height: 32px;
                text-align: center;
                margin-left: 16px;
                &.active{
                    background-color: #FF6B6B ;
                    color: #FFF;

                }
            }
           
           
        }
    }
}
</style>